<template>
  <div class="home">
    <ul>
      <li v-for="(item,index) of users" :key="item">
        <router-link 
        :to="{
          name:'user',
          params:{
            id:item,
            index
          },
          query:{
            from:'index'
          }
        }"
        >{{item}}</router-link>
      </li>
    </ul>
  </div>
</template>

<script>


export default {
  name: "Home",
  components: {
    // HelloWorld,
  },
  data() {
    return {
      users:[
        '战三',
        '123',
        'hahaha'
      ]
    }
  },
};
</script>
